package com.ceo.common.utils;

import java.util.Date;
import java.util.UUID;

/**
 * @author uto_dev_008
 * @desc
 * @since 2021/11/24 11:00
 * Copyright (c)  All rights reserved
 */
public class EntityUtil {
    /*
     创建UUID
   */
    public static String createUUID() {
        return UUID.randomUUID().toString();
    }

    public static String createUUIDNoSeparator() {
        UUID uuid = UUID.randomUUID();
        String str = uuid.toString();
        // 去掉分割符
        return str.substring(0, 8) + str.substring(9, 13) + str.substring(14, 18) + str
                .substring(19, 23) + str.substring(24);
    }

    /*
      获取系统当前时间
    */
    public static Date getSystemDate() {
        return new Date();
    }
}
